package top.tenebrous.termbor.rpc.protocol.message;

/**
 * @program: termbor-rpc
 * @description:
 * @author: yazhang6
 * @create: 2024-05-21 09:26
 **/
public class RpcResponse extends RpcMessage {

    private static final long serialVersionUID = 1L;

    private String error;

    private Object result;

    public String getError() {
        return error;
    }

    public boolean isError() {
        return error != null;
    }

    public void setError(String error) {
        this.error = error;
    }

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }
}
